import './App.css';
import { Button } from 'antd-mobile'
import { Link, Route } from 'react-router-dom'
import Home from './pages/Home'
import CityList from './pages/CityList'
function App() {
  return (
    <div className="App">
      项目根组件<Button
        onClick={() => {
          alert('hello.')
        }}
      >
        Default
      </Button>
      <Link to='/home'>home</Link>
      <br />
      <Link to='/citylist'>citylist</Link>

      <Route path='/home' component={Home} />
      <Route path='/citylist' component={CityList} />

    </div>
  );
}

export default App;
